// Create a file to write to. string createText = "Hello and Welcome" + Environment.NewLine; File.WriteAllText(path, createText); ... // Open the file to read from. string readText = File.ReadAllText(path);